/*
 * @(#) StaticServiceImpl
 *
 * <br> Copyright:  Copyright (c) 2017
 * <br> @author caijinhuang
 * <br> 2017-12-18 15:57:49
 */

package com.sunsharing.sharemeeting.service.impl;

import com.sunsharing.sharemeeting.dao.api.AttenderStateDao;
import com.sunsharing.sharemeeting.entity.DecisionState;
import com.sunsharing.sharemeeting.entity.Role;

import org.springframework.stereotype.Service;

import java.util.List;

import javax.annotation.Resource;

import com.sunsharing.sharemeeting.dao.api.DecisionStateDao;
import com.sunsharing.sharemeeting.dao.api.DepartmentDao;
import com.sunsharing.sharemeeting.dao.api.RoleDao;
import com.sunsharing.sharemeeting.dao.api.UserDao;
import com.sunsharing.sharemeeting.entity.AttenderState;
import com.sunsharing.sharemeeting.entity.Department;
import com.sunsharing.sharemeeting.entity.User;
import com.sunsharing.sharemeeting.service.api.StaticService;

@Service
public class StaticServiceImpl implements StaticService {
    @Resource
    UserDao userDao;
    @Resource
    DepartmentDao departmentDao;
    @Resource
    AttenderStateDao attenderStateDao;
    @Resource
    DecisionStateDao decisionStateDao;
    @Resource
    RoleDao roleDao;

    public List<User> selectAllUser() {
        return userDao.selectAllUser();
    }

    public List<Department> selectAllDepartment() {
        return departmentDao.selectAllDepartment();
    }

    public List<Role> selectAllRole() {
        return roleDao.selectAllRole();
    }

    public List<AttenderState> selectAllAttenderState() {
        return attenderStateDao.selectAllAttenderState();
    }

    public List<DecisionState> selectAllDecisionStates() {
        return decisionStateDao.selectAllDecisionStates();
    }
}
